package so.sao.code.service.domain.entity.tagbatch;

import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import so.sao.code.service.domain.entity.TagBatch;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;

/**
 * Created by Administrator on 2017/9/8.
 */

public class RollTagBatch extends TagBatch {
    public long computeTotalTagCount() {
        return Double.valueOf(Math.ceil(getUnitCount() * getTagCount()
                * (1 + getRedundancy() / 100)) + "").longValue();
    }


}
